package com.example.peanutsubway.entity;


public class Channel {
    private Integer id;
    private Integer cid;
    private Integer sid;
    private String channelNum;
    private String downloadAdress;
    private String productName;
    private String showName;
    private String ctime;
    private String area;
    private Integer platform;
    private String des;

    public Channel() {
    }

    public Channel(Integer id, Integer cid, Integer sid, String channelNum, String downloadAdress, String productName, String showName, String ctime, String area, Integer platform, String des) {
        this.id = id;
        this.cid = cid;
        this.sid = sid;
        this.channelNum = channelNum;
        this.downloadAdress = downloadAdress;
        this.productName = productName;
        this.showName = showName;
        this.ctime = ctime;
        this.area = area;
        this.platform = platform;
        this.des = des;
    }

    public Channel(Integer cid, Integer sid, String channelNum, String productName, String showName, String area, Integer platform, String des) {
        this.cid = cid;
        this.sid = sid;
        this.productName = productName;
        this.channelNum = this.cid + this.sid + this.productName;
        this.showName = showName;
        this.area = area;
        this.platform = platform;
        this.des = des;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getChannelNum() {
        return channelNum;
    }

    public void setChannelNum(String channelNum) {
        this.channelNum = channelNum;
    }

    public String getDownloadAdress() {
        return downloadAdress;
    }

    public void setDownloadAdress(String downloadAdress) {
        this.downloadAdress = downloadAdress;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Override
    public String toString() {
        return "Channel{" +
                "id=" + id +
                ", cid=" + cid +
                ", sid=" + sid +
                ", channelNum='" + channelNum + '\'' +
                ", downloadAdress='" + downloadAdress + '\'' +
                ", productName='" + productName + '\'' +
                ", showName='" + showName + '\'' +
                ", ctime='" + ctime + '\'' +
                ", area='" + area + '\'' +
                ", platform=" + platform +
                ", des='" + des + '\'' +
                '}';
    }
}
